import Vue from 'vue';
import Vuex from 'vuex';
Vue.use(Vuex);


const store = new Vuex.Store({
    state:{
        // userName:'',
        // password:''
        isLogin:false,
        uesrInfo:[],
        loginPromise:null

    },
    mutations:{
       changeIsLogin(state,layload){
           state.isLogin = layload.isLogin
       },
       changeUserInfo(state,layload){
           state.userInfo = layload.userInfo
       },
       changeLohinPromise(state,layload){
           state.loginPromise = layload.loginPromise
       }
    }
});
 
export default store;